package com.atguigu.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName:
 * @Description:
 * @version: v1.1.0
 * @author: shuaiqin
 * @date: 2021/8/31-23:29
 * <p>
 * Modification History:
 * Date         Author          Version            Description
 * ------------------------------------------------------------
 * 2021/8/31          shuaiqin          v1.1.0               修改原因
 */
@Component
@FeignClient(value = "CLOUD-PROVIDER-HYSTRIX-SERVICE")//fallback =PaymentFallbackService.class
public interface PaymentHystrixService {
    @GetMapping("/payment/hystrix/ok/{id}")
    public String paymentOk(@PathVariable("id") Integer id);
    @GetMapping("/payment/hystrix/nok/{id}")
    public String paymentNOk(@PathVariable("id") Integer id);
}
